package com.opennice.soukaoti.index;

import java.util.ArrayList;

import org.apache.lucene.document.Field;

public interface IndexUtilInterface {
	void addDocument(KaoTiIndexBean kaoTiIndexBean);
	void updateDocument(KaoTiIndexBean kaoTiIndexBean);
	void deleteDocument(String ptId);
	
	
	ArrayList<KaoTiIndexBean> searchQueryAsPName(String queryStrs,int firstResult,int maxReuslt);
	ArrayList<KaoTiIndexBean> searchQueryAsPExaminationTime(String queryStrs,int firstResult,int maxReuslt);
	ArrayList<KaoTiIndexBean> searchQueryAsPAuthor(String queryStrs,int firstResult,int maxReuslt);
	ArrayList<KaoTiIndexBean> searchQueryAspfName(String queryStrs,int firstResult,int maxReuslt);
	ArrayList<KaoTiIndexBean> searchQueryAsptName(String queryStrs,int firstResult,int maxReuslt);
	ArrayList<KaoTiIndexBean> searchQueryAspaAnswer(String queryStrs,int firstResult,int maxReuslt);
}
